home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 686 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.7 KB

  1. Path: newshost.lanl.gov!tanmoy
  2. From: tanmoy@qcd.lanl.gov (Tanmoy Bhattacharya)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Free Pacific C problem
  5. Date: 08 Jan 1996 15:53:54 GMT
  6. Organization: Los Alamos National Laboratory
  7. Message-ID: <TANMOY.96Jan8085354@qcd.lanl.gov>
  8. References: <4cm906$l8v@news.sas.ab.ca>
  9.     <tcpnntpd.16.1.6.16.29.54.2781597121.325010@the-fix.sos.on.ca>
  10.     <30f11e6a.255489216@news.bne.aone.net.au>
  11. NNTP-Posting-Host: qcd.lanl.gov
  12. Mime-Version: 1.0
  13. Content-Type: text
  14. In-reply-to: clyde@hitech.com.au's message of Mon, 08 Jan 1996 13:45:57 GMT
  15.  
  16. --text follows this line--
  17. In article <30f11e6a.255489216@news.bne.aone.net.au>
  18. clyde@hitech.com.au (Clyde Smith-Stubbs) writes: 
  19. <snip>
  20.    >    I have it loaded on my machine too but use TC3 because Pacific is 
  21.    >not a true Ansi C program.  Just as an example the comment lines // 
  22.  
  23.    This is an extension, non-ANSI, yes, but I don't believe there are any
  24.    compilers out there that in their default mode accept only strictly
  25.  
  26. True. A compiler is commonly called ANSI conforming if it has at least
  27. one mode of operation where it tries to be strictly conforming: even
  28. if that is not the `default' mode (whatever that means). I think
  29. existence of such a mode influences my decision to use a compiler very
  30. strongly: its being the default mode does not (unless, because of the
  31. OS or the way the compiler is written, it is very difficult to use the
  32. particular non-default mode).
  33.  
  34.    conforming ANSI C programs. You'd be surprised how many people believe
  35.    that the // comment feature is *already* part of C. It's certain to be
  36.  
  37. Are they more than the number of people who think i=i++; is a part of
  38. the language? Really, how many people writing code for more than OS
  39. have you seen that think // is a part of the C language? In fact, how
  40. many OS's can you find where even a single compiler accepts // as
  41. starting a line oriented comment?
  42.  
  43.    added in the next release of the standard - just like function
  44.    prototypes were borrowed from C++.
  45.  
  46. I shall wait for the next release of the standard to bless the
  47. practices of individual OSs (like // or void main). Till then,
  48. portability seems to be a more useful goal than arguing incessantly
  49. over what the standard shall mandate in its next release.
  50.  
  51. Cheers
  52. Tanmoy
  53.  
  54. --
  55. tanmoy@qcd.lanl.gov(128.165.23.46) DECNET: BETA::"tanmoy@lanl.gov"(1.218=1242)
  56. Tanmoy Bhattacharya O:T-8(MS B285)LANL,NM87545 H:#9,3000,Trinity Drive,NM87544
  57. Others see <gopher://yaleinfo.yale.edu:7700/00/Internet-People/internet-mail>,
  58. <http://alpha.acast.nova.edu/cgi-bin/inmgq.pl>or<ftp://csd4.csd.uwm.edu/pub/
  59. internetwork-mail-guide>. -- <http://nqcd.lanl.gov/people/tanmoy/tanmoy.html>
  60. fax: 1 (505) 665 3003   voice: 1 (505) 665 4733    [ Home: 1 (505) 662 5596 ]
  61.